package com.xgp.springmvc.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xgp.springmvc.dao.UserMapper;
import com.xgp.springmvc.pojo.User;
import com.xgp.springmvc.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;

	public User login(String usercode, String password) {
		User user = this.userMapper.login(usercode, password);
		return user;
	}
	

}
